import request from '../../utils/request'

/**
 * 新增拖车供应商运价
 * 
 */
export async function createTrailerFee( data ) {
	return request(apiPath.mc + "/api/trailerFee", {
		method: 'post',
		data
	});
}


 /**
  * 修改拖车供应商运价
  *
  */
export async function updateTrailerFee( data ) {
    return request(apiPath.mc + "/api/trailerFee", {
        method: 'put',
        data
    });
}

  /**
   * 根据id删除拖车供应商运价
   * 
   */
export async function deleteTrailerFeeById({ id }){
    return request(apiPath.mc + "/api/trailerFee/" + id,{
        method: 'delete'
    });
}
   
   /**
    *根据id获取拖车供应商运价
    *
    */
export async function getTrailerFeeById({ id }){
    return request(apiPath.mc +  "/api/trailerFee/" + id,{
        method: 'get'
    });
}


    /**
     * 分页获取拖车供应商运价
     * 
     */
export async function getListForPage({ supplier, province, city, district, street,port, page}){
    return request(apiPath.mc + "/api/trailerFee",{
        method: 'get',
        data: { supplier, province, city, district, port,street, page: page.page, size: page.size }
    });
}
